package org.csu.mypetstore.persistence;

import org.csu.mypetstore.domain.Product;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProductMapper {
    List<Product> getProductListByCategory(String categoryId);

    Product getProduct(String productId);
    String getProductId(String itemId);
    Product getProductByname(String name);

    List<Product> searchProductList(String keywords);
    List<Product> getallproduct();
    void deleteProduct(String productid);
    void insertProduct(Product product);
    List<Product> searchProduct(String keywords);
    void updateProduct(Product product);
}
